package com.example.ai_basedintelligentdiagnosisandtreatmentofchildren.model;

public class ChatMessage {
    private String message;
    private boolean isOwnMessage;
    private long timestamp;
    private String userName;

    public ChatMessage(String message, boolean isOwnMessage, long timestamp,String userName) {
        this.message = message;
        this.isOwnMessage = isOwnMessage;
        this.timestamp = timestamp + 8*60*60*1000;
        this.userName = userName;
    }

    public String getMessage() {
        return message;
    }

    public boolean isOwnMessage() {
        return isOwnMessage;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setOwnMessage(boolean ownMessage) {
        isOwnMessage = ownMessage;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
